import { Schema } from "mongoose";
import baseModel from "./baseModel";

const blogSchema = new Schema({
  title: {
    type: String,
    required: true,
  },
  content: {
    type: String,
    required: true,
  },
  user: {
    type: Schema.Types.ObjectId,
    ref: "User",
  },
  ...baseModel,
});

export default blogSchema;

